package com.common.help.test18;

import java.util.Arrays;
import java.util.regex.Pattern;

public class Test5 {

	public static void main(String[] args) {
		
		String ss = "superman";
		String subs = ss.substring(5, ss.length());
		System.out.println(subs);
		
		String sss = "台AAAAA,台BBBBB,";
		String ssss = "台CCCCC";
		String cc  =  sss.replaceAll("台BBBBB,", "")+ssss+",";
		System.out.println(cc);
		
		
		Object[][] a = {{"0hah","1hah","2hah","3hah"},{1,2,3,4},{2,3,4,5},{3,4,5,6}};
		
		System.out.println(Arrays.deepToString(a));
		
		String ccc = "粤Z1AJHHAX港9使";
		String c = ccc.substring(ccc.length()-1);
		if(!Pattern.matches("[0-9]{1}", c)){
			c = "0";
		}
		System.out.println(c);
	}
}
